package com.github.spy.apollo.squirrel.spring;

import com.github.spy.apollo.squirrel.common.OrderState;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * module name
 *
 * @author spy
 * @version 1.0 2020/8/20
 * @since 1.0
 */
@Slf4j
@Service
public class SubmitOrderStateMachineEngine extends AbstractOrderStatusMachineEngine<SubmitOrderStateMachine> {

    @Override
    protected boolean accept(OrderState orderState) {
        return OrderState.INIT == orderState;
    }

}